package com.bingxue.edu.management.system.model.query;

import com.bingxue.edu.common.enums.CommonStatusEnum;
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import com.bingxue.edu.management.system.model.entity.Storage;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 存储配置查询条件
 *
 * @author panbo
 * @since 2024/07/22 23:33
 */
@Data
@Schema(description = "存储配置查询条件")
@TableRef(Storage.class)
public class StorageQuery {

    @Schema(description = "关键字")
    @Query(type = QueryType.LIKE, field = "name")
    @Query(type = QueryType.LIKE, field = "code")
    private String keyword;

    @Schema(description = "状态")
    private CommonStatusEnum status;
}
